When attempting to account for scaling in
e65e5ede the icon_size of the
StIcon was set to the target size, overriding the icon-size set in the
'system-action-icon' CSS, which was only half the size. The intent of
that commit however was not to scale up the symbolic icon, but the
circle around it. Do this by manually applying the scaling factor.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3940
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1777>
}
getResultMetas(apps, callback) {
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
let metas = [];
for (let id of apps) {
if (id.endsWith('.desktop')) {
const createIcon = size => new St.Icon({
icon_name: iconName,
- icon_size: size,
+ width: size * scaleFactor,
+ height: size * scaleFactor,
style_class: 'system-action-icon',
});